package com.armani.entity;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @ClassName Spu
 * @Description 商品spu实体类
 * @Author Admin
 * @Date 2021/11/27 8:53
 * @Version 1.0
 **/
@Data
public class ItemSpu {
    //商品spu的id

    private Integer id;
    //商品名称

    private String name;
    //商品子标题

    private String subName;
    //一级类别id

    private Integer typeId1;
    //二级类别id

    private Integer typeId2;
    //使用方法

    private String method;
    //是否有效

    private Integer saleAble;
    //添加时间
    @JSONField(format = "yyyy-MM-dd")

    private Date createTime;
    //最后修改时间
    @JSONField(format = "yyyy-MM-dd")

    private Date lastTime;

}
